﻿<Application 
    x:Class="WeatherFrame.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:my="clr-namespace:WeatherFrame">    

    <!--Application Resources-->
    <Application.Resources>
        <DataTemplate x:Key="WeatherItem">
            <my:WeatherItemView/>
        </DataTemplate>
        <DataTemplate x:Key="LocationList">
            <my:LocationListView/>
        </DataTemplate>
        <DataTemplate x:Key="WeatherItemList">
            <my:MultiDayView/>
        </DataTemplate>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>